<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "comments_reply".
 *
 * @property integer $reply_id
 * @property integer $comment_id
 * @property integer $admin_id
 * @property string $content
 * @property string $create_time
 * @property string $update_time
 */
class CommentsReply extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'd_try.comments_reply';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['comment_id', 'admin_id', 'create_time', 'update_time'], 'required'],
            [['comment_id', 'admin_id'], 'integer'],
            [['create_time', 'update_time'], 'safe'],
            [['content'], 'string', 'max' => 1000],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'reply_id' => '回复ID',
            'comment_id' => '评论ID',
            'admin_id' => 'Admin ID',
            'content' => '回复',
            'create_time' => '回复时间',
            'update_time' => '更新时间',
        ];
    }

    /**
     * @inheritdoc
     * @return \services\models\CommentsReplyQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new \services\models\CommentsReplyQuery(get_called_class());
    }

}
